using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DuTruMuaThuoc: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DuTruMuaThuocFields
		{
			DuTru_ID,
			ThoiGian,
			NhanVien,
			PhongBan,
			GhiChu,
			Printed,
			TinhTrang,
			Huy,
			LyDoHuy,
			ThoiGianHuy,
			NguoiHuy,
			NgayLap,
			Field1,
			Field2,
			Field3,
			Field4,
			Field5
		}
		#endregion

		#region Data Members

			decimal _duTru_ID;
			string _thoiGian;
			string _nhanVien;
			string _phongBan;
			string _ghiChu;
			byte? _printed;
			byte? _tinhTrang;
			byte? _huy;
			string _lyDoHuy;
			DateTime? _thoiGianHuy;
			string _nguoiHuy;
			DateTime? _ngayLap;
			string _field1;
			string _field2;
			string _field3;
			string _field4;
			string _field5;

		#endregion

		#region Properties

		public decimal  DuTru_ID
		{
			 get { return _duTru_ID; }
			 set
			 {
				 if (_duTru_ID != value)
				 {
					_duTru_ID = value;
				 }
			 }
		}

		public string  ThoiGian
		{
			 get { return _thoiGian; }
			 set
			 {
				 if (_thoiGian != value)
				 {
					_thoiGian = value;
				 }
			 }
		}

		public string  NhanVien
		{
			 get { return _nhanVien; }
			 set
			 {
				 if (_nhanVien != value)
				 {
					_nhanVien = value;
				 }
			 }
		}

		public string  PhongBan
		{
			 get { return _phongBan; }
			 set
			 {
				 if (_phongBan != value)
				 {
					_phongBan = value;
				 }
			 }
		}

		public string  GhiChu
		{
			 get { return _ghiChu; }
			 set
			 {
				 if (_ghiChu != value)
				 {
					_ghiChu = value;
				 }
			 }
		}

		public byte?  Printed
		{
			 get { return _printed; }
			 set
			 {
				 if (_printed != value)
				 {
					_printed = value;
				 }
			 }
		}

		public byte?  TinhTrang
		{
			 get { return _tinhTrang; }
			 set
			 {
				 if (_tinhTrang != value)
				 {
					_tinhTrang = value;
				 }
			 }
		}

		public byte?  Huy
		{
			 get { return _huy; }
			 set
			 {
				 if (_huy != value)
				 {
					_huy = value;
				 }
			 }
		}

		public string  LyDoHuy
		{
			 get { return _lyDoHuy; }
			 set
			 {
				 if (_lyDoHuy != value)
				 {
					_lyDoHuy = value;
				 }
			 }
		}

		public DateTime?  ThoiGianHuy
		{
			 get { return _thoiGianHuy; }
			 set
			 {
				 if (_thoiGianHuy != value)
				 {
					_thoiGianHuy = value;
				 }
			 }
		}

		public string  NguoiHuy
		{
			 get { return _nguoiHuy; }
			 set
			 {
				 if (_nguoiHuy != value)
				 {
					_nguoiHuy = value;
				 }
			 }
		}

		public DateTime?  NgayLap
		{
			 get { return _ngayLap; }
			 set
			 {
				 if (_ngayLap != value)
				 {
					_ngayLap = value;
				 }
			 }
		}

		public string  Field1
		{
			 get { return _field1; }
			 set
			 {
				 if (_field1 != value)
				 {
					_field1 = value;
				 }
			 }
		}

		public string  Field2
		{
			 get { return _field2; }
			 set
			 {
				 if (_field2 != value)
				 {
					_field2 = value;
				 }
			 }
		}

		public string  Field3
		{
			 get { return _field3; }
			 set
			 {
				 if (_field3 != value)
				 {
					_field3 = value;
				 }
			 }
		}

		public string  Field4
		{
			 get { return _field4; }
			 set
			 {
				 if (_field4 != value)
				 {
					_field4 = value;
				 }
			 }
		}

		public string  Field5
		{
			 get { return _field5; }
			 set
			 {
				 if (_field5 != value)
				 {
					_field5 = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DuTru_ID", "DuTru_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("ThoiGian", "ThoiGian",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NhanVien", "NhanVien",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("PhongBan", "PhongBan",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GhiChu", "GhiChu",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LyDoHuy", "LyDoHuy",1073741823));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NguoiHuy", "NguoiHuy",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field1", "Field1",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field2", "Field2",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field3", "Field3",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field4", "Field4",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field5", "Field5",50));
		}

		#endregion

	}
}
